package com.devunion.salon.persistence;

import javax.persistence.*;

/**
 * CREATE TABLE `customer` (
 * `id` int(11) NOT NULL auto_increment,
 * `fname` varchar(50) default NULL,
 * `lname` varchar(50) NOT NULL,
 * `email` varchar(255) default NULL,
 * `phone` varchar(20) default NULL,
 * `cell_phone` varchar(20) default NULL,
 * `type` varchar(50) default NULL,
 * `location_id` int(11) NOT NULL default '0',
 * PRIMARY KEY  (`id`)
 * ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ;
 *
 * @author Viktar Liaskovich
 */
@Entity
@Table(name = "customer")
public class Customer extends BasePersistentObject {

    @Column(name = "firstName", length = 50, nullable = true)
    private String firstName;

    @Column(name = "lastName", length = 50, nullable = false)
    private String lastName;

    @Column(name = "email", nullable = true)
    private String email;

    @Column(name = "phone", length = 20, nullable = true)
    private String phone;

    @Column(name = "cellPhone", length = 20, nullable = true)
    private String cellPhone;

    @Column(name = "type", length = 50, nullable = true)
    private String type;

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCellPhone() {
        return cellPhone;
    }

    public void setCellPhone(String cellPhone) {
        this.cellPhone = cellPhone;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }    
}
